package com.bjpowernode.boss.events.model;

import com.bjpowernode.boss.client.email.EmailEntity;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;


public class SendEmailEvent extends ApplicationEvent {

    private EmailEntity emailEntity;



    public SendEmailEvent(Object source) {
        super(source);
    }

    public SendEmailEvent(Object source, Clock clock) {
        super(source, clock);
    }

    public SendEmailEvent(Object source, EmailEntity emailEntity) {
        super(source);
        this.emailEntity = emailEntity;
    }

    public EmailEntity getEmailEntity() {
        return emailEntity;
    }
}
